package com.kl.enums;

/**
 * @author CC
 * time 2024-05-14
 * description
 *  移动方向
 */
public enum Direct {

    UP("Up"),
    DOWN("Down"),
    LEFT("Left"),
    RIGHT("Right")
    ;
    private String desc;
    public String getDesc(){
        return desc;
    }
    Direct(String desc){
        this.desc = desc;
    }
    public static Direct random(){
        int i = (int) (Math.random() * 4);
        return Direct.values()[i];
    }


}
